grid: avoid a floating point exception
authorMatthias Clasen <mclasen@redhat.com>
Sat, 24 Mar 2012 21:16:47 +0000 (17:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 24 Mar 2012 21:19:46 +0000 (17:19 -0400)
commited17c74f586196c95c4cc9f061451db005aff3de
tree726a7a56c264c5a8ec094c89259d8eacf732065f
parentcc6db27ff44c69b2c1b88f768f9f39f0ed09bcce
grid: avoid a floating point exception

When a homogeneous grid has no visible children, we were
accidentally doing a division by zero. Instead, just bail
out early in this case, there is nothing to allocate anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=672763
gtk/gtkgrid.c